package log

import (
	"os"
	"strings"

	"xp/lib/etc"
)

var (
	tube    = etc.Str("logging", "tube")
	sockets = strings.Split(etc.Str("beanstalkd", "uri"), ",")
)

type stderr struct {
}

func (s stderr) Write(b []byte) (int, error) {
	n, err := os.Stderr.Write(b)
	if err != nil {
		return n, err
	}
	os.Stderr.Write([]byte("\n"))
	return n, nil
}
